Skip to content

test(cloudflare): cover staging state drift#49

Merged
intel352 merged 1 commit into
mainfrom
codex/cloudflare-production-staging-drift-test
Jun 20, 2026
Merged

test(cloudflare): cover staging state drift#49
intel352 merged 1 commit into
mainfrom
codex/cloudflare-production-staging-drift-test

Conversation

@intel352

Copy link
Copy Markdown
Contributor

Summary

  • preserve an interrupted DNS migration regression test from a stale worktree
  • verify a Cloudflare diff catches both missing desired DNS records and a stale workflow-managed marker in one production-style staged state

Verification

  • GOWORK=off go test ./...

Copilot AI review requested due to automatic review settings June 20, 2026 08:16
@intel352
intel352 merged commit af57ba5 into main Jun 20, 2026
4 checks passed
@intel352
intel352 deleted the codex/cloudflare-production-staging-drift-test branch June 20, 2026 08:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a regression test to ensure the DNS driver’s Diff detects production-style staging drift where (a) desired DNS records are missing and (b) a stale workflow-managed marker TXT record remains present, so the drift is surfaced as an update.

Changes:

  • Adds a new DNSDriver.Diff test case covering “production staging state drift” with both missing desired records and a stale workflow marker.
  • Exercises output parsing with a production-like outputs.records shape ([]any of objects) containing both current and stale markers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +896 to +898
if len(diff.Changes) != 5 {
t.Fatalf("changes len = %d, want 5: %#v", len(diff.Changes), diff.Changes)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants